﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.iOS.RemoteNotification
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.Collections;
using System.Runtime.CompilerServices;
using UnityEngine.Bindings;
using UnityEngine.Scripting;

#nullable disable
namespace UnityEngine.iOS
{
  /// <summary>
  ///   <para>RemoteNotification is only available on iPhoneiPadiPod Touch.</para>
  /// </summary>
  [Obsolete("iOS.Notification Services is deprecated. Consider using the Mobile Notifications package (available in the package manager) which implements the UserNotifications framework.")]
  [NativeConditional("PLATFORM_IOS || PLATFORM_TVOS")]
  [RequiredByNativeCode]
  [NativeHeader("PlatformDependent/iPhonePlayer/Notifications.h")]
  public sealed class RemoteNotification
  {
    private IntPtr m_Ptr;

    private RemoteNotification()
    {
    }

    ~RemoteNotification() => NotificationHelper.DestroyRemote(this.m_Ptr);

    /// <summary>
    ///   <para>The message displayed in the notification alert. (Read Only)</para>
    /// </summary>
    public extern string alertBody { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>A short description of the reason for the alert. (Read Only)</para>
    /// </summary>
    public extern string alertTitle { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>The name of the sound file to play when an alert is displayed. (Read Only)</para>
    /// </summary>
    public extern string soundName { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>The number to display as the application's icon badge. (Read Only)</para>
    /// </summary>
    public extern int applicationIconBadgeNumber { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>A dictionary for passing custom information to the notified application. (Read Only)</para>
    /// </summary>
    public extern IDictionary userInfo { [NativeThrows, MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>A boolean value that controls whether the alert action is visible or not. (Read Only)</para>
    /// </summary>
    public extern bool hasAction { [NativeName("HasAction"), MethodImpl(MethodImplOptions.InternalCall)] get; }
  }
}
